package com.jin.exception;

import com.jin.enums.ResultEnum;

/**
 * @author JJLiu
 * @create 2021-07-17 14:12
 **/
public class SellException extends RuntimeException {

    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public SellException(Integer code,String message) {
            super(message);
            this.code = code;
        }



}
